<?php
 
 // Defines the Photo object
// When rebuilding SilverStripe DB, this will create DB table for Photo
 
 class Photo extends DataObject {
   
	// Define object elements
	static $db = array(
		'Photo' => 'varchar',
		'Date' => 'Date',
		'Photographer' => 'Text'
	);
   	
	// Create relationships to other tables
	// This object is a many side of one-many relationships
	static $has_one = array(
		'MySighting' => 'Sighting',
		'MyWhale' => 'Whale'
	);

}
?>